﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Applicants.ascx.cs" Inherits="ERP.Modules.Applicants" %>
<%-------------------------------%>
<ext:Hidden ID="FormatTypeApplicants" runat="server" />
<ext:Panel runat="server" Layout="Fit" Border="False" ID="PanelApplicants">
    <Content>
        <%--------------GridApplicants-----------------%>
        <ext:GridPanel
            ID="grApplicants"
            Cls="grid-double"
            runat="server"
            EnableColumnMove="true"
            Border="False">
            <Store>
                <%-------------StoreApplicants-----------------%>
                <ext:Store
                    ID="StoreApplicants"
                    runat="server"
                    OnReadData="StoreApplicants_RefreshData"
                    PageSize="20">
                    <Model>
                        <ext:Model runat="server" IDProperty="Applicants_ID">
                            <Fields>
                                <ext:ModelField Name="Applicants_No" Type="String" />
                                <ext:ModelField Name="Applicants_Name" Type="String" />
                                <ext:ModelField Name="Applicants_BirthDay" Type="Date" />
                                <ext:ModelField Name="Applicants_Gender" Type="String" />
                                <ext:ModelField Name="Applicants_Phone" Type="String" />
                                <ext:ModelField Name="Applicants_Mobie" Type="String" />
                                <ext:ModelField Name="Applicants_Email" Type="String" />
                                <ext:ModelField Name="Main_Name" Type="String" />
                                <ext:ModelField Name="Datebegin" Type="Date" />
                            </Fields>
                        </ext:Model>
                    </Model>
                </ext:Store>
            </Store>
            <ColumnModel runat="server">
                <Columns>
                    <ext:RowNumbererColumn runat="server" Width="30" Align="Center" />
                    <ext:DateColumn runat="server" Text="Ngày lập" Width="136" DataIndex="Datebegin" Format="dd-MM-yyyy" Align="Center"/>
                    <ext:Column runat="server" Text="Tên kế hoạch" Width="100" DataIndex="Main_Name"/>
                    <ext:Column runat="server" Text="Mã ứng viên" Width="100" DataIndex="Applicants_No"/>
                    <ext:Column runat="server" Text="Tên ứng viên" Width="200" DataIndex="Applicants_Name"/>
                    <ext:DateColumn runat="server" Text="Ngày sinh" Width="136" DataIndex="Applicants_BirthDay" Format="dd-MM-yyyy" Align="Center"/>
                    <ext:Column runat="server" Text="Giới tính" Width="81" DataIndex="Applicants_Gender"/>
                    <ext:Column runat="server" Text="Điện thoại" Width="126" DataIndex="Applicants_Phone"/>
                    <ext:Column runat="server" Text="Di động" Width="126" DataIndex="Applicants_Mobie"/>
                    <ext:Column runat="server" Text="Email" Width="200" DataIndex="Applicants_Email" Flex="1"/>
                </Columns>
            </ColumnModel>
            <DirectEvents>
                <ItemDblClick OnEvent="ApplicantsDblClick">
                    <ExtraParams>
                        <ext:Parameter Name="Applicants_ID" Value="record.data.Applicants_ID" Mode="Raw" />
                    </ExtraParams>
                    <EventMask ShowMask="true" Msg="Đang tải..." />
                </ItemDblClick>
            </DirectEvents>
            <SelectionModel>
                <ext:CheckboxSelectionModel runat="server" Mode="Multi">
                     <Listeners>
                       <SelectionChange Handler="
                            if (selected.length == 0) {
                                #{btnEdit}.disable();
                                #{btnDel}.disable();
                                #{btnExport}.disable();
                            } else {
                                #{btnEdit}.enable();
                                #{btnDel}.enable();
                                #{btnExport}.enable();
                            }" />
                   </Listeners>
                </ext:CheckboxSelectionModel>
            </SelectionModel>
            <DockedItems>
                <ext:Toolbar runat="server" Dock="Top">
                    <Items>
                        <ext:Button ID="btnAddNew" runat="server" Text="Thêm mới" Icon="ApplicationAdd">
                            <DirectEvents>
                                <Click OnEvent="btnAddNew_Click">
                                    <EventMask ShowMask="true" Msg="Đang tải..." />
                                </Click>
                            </DirectEvents>
                        </ext:Button>
                        <ext:ToolbarSeparator />
                        <ext:Button ID="btnEdit" runat="server" Text="Sửa" Icon="ApplicationEdit">
                            <DirectEvents>
                                <Click OnEvent="btnEdit_Click">
                                    <EventMask ShowMask="true" Msg="Đang tải..." />
                                </Click>
                            </DirectEvents>
                        </ext:Button>
                        <ext:ToolbarSeparator />
                        <ext:Button ID="btnDel" runat="server" Text="Xoá" Icon="ApplicationDelete">
                            <DirectEvents>
                                <Click OnEvent="btnDel_Click">
                                    <EventMask ShowMask="true" Msg="Đang tải..." />
                                    <ExtraParams>
                                        <ext:Parameter Name="name" Value="btnDel"></ext:Parameter>
                                    </ExtraParams>
                                    <Confirmation ConfirmRequest="true"
                                        Title="Thông Báo" Message="Bạn có muốn xoá mẫu tin này không ?">
                                    </Confirmation>
                                </Click>
                            </DirectEvents>
                        </ext:Button>
                        <ext:ToolbarSeparator />
                        <ext:Button ID="btnExport" runat="server" Text="Xuất tập tin" Icon="Printer">
                            <Menu>
                                <ext:Menu ID="MenuMain" runat="server">
                                    <Items>
                                        <ext:MenuItem ID="MenuItemExportXML" runat="server" Text="XML" Icon="PageCode">
                                            <Listeners>
                                                <Click Handler="submitValue(#{grApplicants}, #{FormatTypeApplicants}, 'xml');" />
                                            </Listeners>
                                        </ext:MenuItem>
                                    </Items>
                                </ext:Menu>
                            </Menu>
                        </ext:Button>
                    </Items>
                </ext:Toolbar>
                <ext:Toolbar runat="server" Dock="Bottom" AnchorHorizontal="100%">
                    <Items>
                        <ext:TriggerField ID="txtSearch" runat="server" Width="200" EnableKeyEvents="true" MarginSpec="0 8 0 0">
                            <Triggers>
                                <ext:FieldTrigger Icon="Search" />
                            </Triggers>
                            <DirectEvents>
                                <TriggerClick OnEvent="Search_Event"></TriggerClick>
                                <KeyPress OnEvent="Search_Event"></KeyPress>
                            </DirectEvents>
                        </ext:TriggerField>
                        <ext:PagingToolbar runat="server" StoreID="StoreApplicants" BeforePageText="Trang" AfterPageText="của {0}" LastText="Cuối" NextText="Kế tiếp" PrevText="Trở lại" FirstText="Đầu" RefreshText="Làm tươi" DisplayInfo="true" DisplayMsg="Trang {0} - {1} của {2}" />
                    </Items>
                </ext:Toolbar>
            </DockedItems>
        </ext:GridPanel>
    </Content>
</ext:Panel>
<ext:Panel runat="server">
    <Content>
        <%-----------WindowsApplicants-----------------%>
        <ext:Window ID="WindowsApplicants" runat="server"
            Title="Thông tin ứng viên"
            DefaultAnchor="100%"
            Width="866"
            Height="521"
            Hidden="true"
            AutoDataBind="True"
            Region="Center"
            Resizable="True"
            Modal="true"
            HideMode="Offsets"
            Border="false"
            Padding="5"
            DefaultButton="btnSavePopUp">
            <Items>
                <ext:Toolbar runat="server">
                    <Items>
                        <ext:Button runat="server" Text="Lưu lại" Icon="Disk" ID="btnSavePopUp">
                            <DirectEvents>
                                <Click OnEvent="btnSavePopUp_Click" Before="return #{FormPanelApplicants}.isValid();">
                                    <EventMask ShowMask="true" Msg="Đang tải..." />
                                </Click>
                            </DirectEvents>
                        </ext:Button>
                        <ext:ToolbarSeparator />
                        <ext:Button runat="server" Text="Huỷ bỏ" Icon="Decline" ID="btnCancelPopUp">
                            <DirectEvents>
                                <Click OnEvent="btnCancelPopUp_Click">
                                    <EventMask ShowMask="true" Msg="Đang tải..." />
                                </Click>
                            </DirectEvents>
                        </ext:Button>
                        <ext:TextField ID="lbID" runat="server" FieldLabel="ID" LabelAlign="Right" Hidden="true" />
                    </Items>
                </ext:Toolbar>
                <ext:FormPanel ID="FormPanelApplicants" runat="server"
                    AutoHeight="true"
                    BodyPadding="10"
                    Frame="True"
                    DefaultAnchor="100%">
                    <Items>
                        <ext:FieldContainer
                            runat="server"
                            AnchorHorizontal="100%"
                            Layout="HBoxLayout">
                            <Items>
                                <ext:FieldContainer
                                    runat="server"
                                    AnchorHorizontal="100%"
                                    Layout="HBoxLayout">
                                    <Items>
                                        <ext:SelectBox
                                            ID="SelectBoxRecruitmentPlanMain"
                                            runat="server"
                                            Cls="x-select-box"
                                            LabelWidth="150"
                                            FieldLabel="Theo kế hoạch tuyển dụng"
                                            DisplayField="Main_Name"
                                            ValueField="ID_Main"
                                            MarginSpec="8 3 5 0"
                                            Width="350"
                                            AllowBlank="False"
                                            EmptyText="Chọn kế hoạch">
                                            <Store>
                                                <ext:Store ID="StoreDepartment" runat="server">
                                                    <Model>
                                                        <ext:Model runat="server">
                                                            <Fields>
                                                                <ext:ModelField Name="Main_Name" />
                                                                <ext:ModelField Name="ID_Main" />
                                                            </Fields>
                                                        </ext:Model>
                                                    </Model>
                                                </ext:Store>
                                            </Store>
                                            <DirectEvents>
                                                <Select OnEvent="SelectBoxRecruitmentPlanMain_Change">
                                                    <EventMask ShowMask="true" Msg="Đang tải..."></EventMask>
                                                </Select>
                                            </DirectEvents>
                                        </ext:SelectBox>
                                        <ext:Button runat="server" Text="" Icon="Reload" ID="btnReloadCode" ToolTip="Click vào để tải lại danh sách" Margins="8 10 0 0">
                                            <DirectEvents>
                                                <Click OnEvent="btnReloadCode_Click">
                                                    <EventMask ShowMask="true" Msg="Đang tải..." />
                                                </Click>
                                            </DirectEvents>
                                        </ext:Button>
                                        <ext:SelectBox
                                            ID="SelectBoxRecruitmentPlanMainDetail"
                                            runat="server"
                                            Cls="x-select-box"
                                            FieldLabel="Cấp dự tuyển"
                                            LabelWidth="100"
                                            DisplayField="Level_Main"
                                            ValueField="ID_Main_Detail"
                                            MarginSpec="8 3 5 0"
                                            Width="350"
                                            AllowBlank="False"
                                            EmptyText="Chọn cấp dự tuyển">
                                            <Store>
                                                <ext:Store ID="StorePlanMainDetail" runat="server">
                                                    <Model>
                                                        <ext:Model runat="server">
                                                            <Fields>
                                                                <ext:ModelField Name="Level_Main" />
                                                                <ext:ModelField Name="ID_Main_Detail" />
                                                            </Fields>
                                                        </ext:Model>
                                                    </Model>
                                                </ext:Store>
                                            </Store>
                                        </ext:SelectBox>
                                        <ext:Button runat="server" Text="" Icon="Reload" ID="btnReloadCodeDetail" ToolTip="Click vào để tải lại danh sách" Margins="8 3 0 0">
                                            <DirectEvents>
                                                <Click OnEvent="btnReloadCodeDetail_Click">
                                                    <EventMask ShowMask="true" Msg="Đang tải..." />
                                                </Click>
                                            </DirectEvents>
                                        </ext:Button>
                                    </Items>
                                </ext:FieldContainer>
                            </Items>
                        </ext:FieldContainer>
                        <ext:FieldContainer
                            runat="server"
                            AnchorHorizontal="100%"
                            Layout="HBoxLayout">
                            <Items>
                                <ext:FieldContainer
                                    runat="server"
                                    AnchorHorizontal="100%"
                                    Layout="HBoxLayout">
                                    <Items>
                                        <ext:SelectBox
                                            ID="SelectBoxJob"
                                            runat="server"
                                            Cls="x-select-box"
                                            LabelWidth="150"
                                            FieldLabel="Vị trí dự tuyển"
                                            DisplayField="Job_Name"
                                            ValueField="Job_ID"
                                            MarginSpec="8 3 5 0"
                                            Width="350"
                                            AllowBlank="False"
                                            EmptyText="Chọn vị trí dự tuyển">
                                            <Store>
                                                <ext:Store ID="StoreJob" runat="server">
                                                    <Model>
                                                        <ext:Model runat="server">
                                                            <Fields>
                                                                <ext:ModelField Name="Job_Name" />
                                                                <ext:ModelField Name="Job_ID" />
                                                            </Fields>
                                                        </ext:Model>
                                                    </Model>
                                                </ext:Store>
                                            </Store>
                                        </ext:SelectBox>
                                        <ext:Button runat="server" Text="" Icon="Reload" ID="btnJob" ToolTip="Click vào để tải lại danh sách" Margins="8 10 0 0">
                                            <DirectEvents>
                                                <Click OnEvent="btnReloadJob_Click">
                                                    <EventMask ShowMask="true" Msg="Đang tải..." />
                                                </Click>
                                            </DirectEvents>
                                        </ext:Button>
                                    </Items>
                                </ext:FieldContainer>
                            </Items>
                        </ext:FieldContainer>
                        <ext:TabPanel ID="TabPanelMain" runat="server" Layout="Fit">
                            <Items>
                                <ext:Panel 
                                    ID="TabInfo"
                                    runat="server" 
                                    Title="Thông tin cá nhân" 
                                    Height="350"
                                    Layout="FormLayout"
                                    Border="False"
                                    BodyPadding="6">
                                    <Items>
                                        <ext:FieldContainer
                                            runat="server"
                                            AnchorHorizontal="100%"
                                            Layout="HBoxLayout">
                                            <Items>
                                                <ext:TextField ID="txtApplicants_No" runat="server" FieldLabel="Mã - Họ tên" AnchorHorizontal="100%" AllowBlank="false" />
                                                <ext:TextField ID="txtApplicants_Name" runat="server" Width="273" AllowBlank="false" />
                                            </Items>
                                        </ext:FieldContainer>
                                        <ext:FieldContainer
                                            runat="server"
                                            AnchorHorizontal="100%"
                                            Layout="HBoxLayout">
                                            <Items>
                                                <ext:TextField ID="txtApplicants_Identification" runat="server" FieldLabel="CMND" AnchorHorizontal="100%" AllowBlank="false" MarginSpec="0 20 5 0" />
                                                <ext:TextField ID="txtApplicants_PlaceOfIssue" runat="server" FieldLabel="Nơi cấp" AnchorHorizontal="100%" AllowBlank="false" />
                                            </Items>
                                        </ext:FieldContainer>
                                        <ext:FieldContainer
                                            runat="server"
                                            AnchorHorizontal="100%"
                                            Layout="HBoxLayout">
                                            <Items>
                                                <ext:DateField ID="txtApplicants_BirthDay" runat="server" FieldLabel="Ngày sinh" Width="252" AllowBlank="false" MarginSpec="0 20 5 0" />
                                                <ext:RadioGroup ID="rdApplicants_Gender" Width="200" runat="server" FieldLabel="Giới tính" ColumnsNumber="2" AutomaticGrouping="false">
                                                    <Items>
                                                        <ext:Radio ID="chkApplicants_Gender_FeMale" runat="server" Name="ratingemp" InputValue="Nữ" BoxLabel="Nữ" />
                                                        <ext:Radio ID="chkApplicants_Gender_Male" runat="server" Name="ratingemp" InputValue="Nam" BoxLabel="Nam" Checked="True" />
                                                    </Items>
                                                </ext:RadioGroup>
                                            </Items>
                                        </ext:FieldContainer>
                                        <ext:FieldContainer
                                            runat="server"
                                            AnchorHorizontal="100%"
                                            Layout="HBoxLayout">
                                            <Items>
                                                <ext:TextField ID="txtEthnic" runat="server" FieldLabel="Dân tộc" Width="225" AllowBlank="false" MarginSpec="0 5 5 0"  ReadOnly="True" />
                                                <ext:Button runat="server" Text="" Icon="BulletGet" ID="linkEthnic" ToolTip="Click vào để chọn dân tộc" Margins="0 20 0 0">
                                                    <DirectEvents>
                                                        <Click OnEvent="linkEthnic_Click">
                                                            <EventMask ShowMask="true" Msg="Đang tải..." />
                                                        </Click>
                                                    </DirectEvents>
                                                </ext:Button>
                                                <ext:TextField ID="txtEthnic_ID" runat="server" FieldLabel="Dân tộc" AnchorHorizontal="100%" AllowBlank="false" Hidden="True" />
                                                <ext:TextField ID="txtReligion" runat="server" FieldLabel="Tôn giáo" Width="225" MarginSpec="0 5 5 0" AllowBlank="false" />
                                                <ext:Button runat="server" Text="" Icon="BulletGet" ID="btnReligion" ToolTip="Click vào để chọn tôn giáo" Margins="0 20 0 0">
                                                    <DirectEvents>
                                                        <Click OnEvent="btnReligion_Click">
                                                            <EventMask ShowMask="true" Msg="Đang tải..." />
                                                        </Click>
                                                    </DirectEvents>
                                                </ext:Button>
                                                <ext:TextField ID="txtReligion_ID" runat="server" FieldLabel="Tôn giáo" AnchorHorizontal="100%" AllowBlank="false" Hidden="True" />
                                            </Items>
                                        </ext:FieldContainer>
                                        <ext:FieldContainer
                                            runat="server"
                                            AnchorHorizontal="100%"
                                            Layout="HBoxLayout">
                                            <Items>
                                                <ext:TextField ID="txtApplicants_Address" runat="server" FieldLabel="Đ/C thường trú" AnchorHorizontal="100%" AllowBlank="false" Margins="0 20 0 0" />
                                                <ext:TextField ID="txtDistricts" runat="server" FieldLabel="Tỉnh/Thành" AnchorHorizontal="100%" AllowBlank="false" Margins="0 20 0 0" ReadOnly="True" />
                                                <ext:TextField ID="txtDistricts_ID" runat="server" FieldLabel="Tỉnh/Thành" AnchorHorizontal="100%" AllowBlank="false" Hidden="True" />
                                                <ext:TextField ID="txtProvince" runat="server" FieldLabel="Quận/Huyện" Width="225" MarginSpec="0 5 5 0" AllowBlank="false" ReadOnly="True" />
                                                <ext:Button runat="server" Text="" Icon="BulletGet" ID="btnProvince" ToolTip="Click vào để chọn quận/huyện" Margins="0 20 0 0">
                                                    <DirectEvents>
                                                        <Click OnEvent="btnProvince_Click">
                                                            <EventMask ShowMask="true" Msg="Đang tải..." />
                                                        </Click>
                                                    </DirectEvents>
                                                </ext:Button>
                                                <ext:TextField ID="txtProvince_ID" runat="server" FieldLabel="Tôn giáo" AnchorHorizontal="100%" AllowBlank="false" Hidden="True" />
                                            </Items>
                                        </ext:FieldContainer>
                                        <ext:FieldContainer
                                            runat="server"
                                            AnchorHorizontal="100%"
                                            Layout="HBoxLayout">
                                            <Items>
                                                <ext:TextField ID="txtApplicants_Address_Staying" runat="server" FieldLabel="Đ/C liên hệ" AnchorHorizontal="100%" AllowBlank="false" Margins="0 20 0 0" />
                                                <ext:TextField ID="txtDistricts_Staying" runat="server" FieldLabel="Tỉnh/Thành" AnchorHorizontal="100%" AllowBlank="false" Margins="0 20 0 0"  ReadOnly="True" />
                                                <ext:TextField ID="txtDistricts_ID_Staying" runat="server" FieldLabel="Tỉnh/Thành" AnchorHorizontal="100%" AllowBlank="false" Hidden="True" />
                                                <ext:TextField ID="txtProvince_Staying" runat="server" FieldLabel="Quận/Huyện" Width="225" MarginSpec="0 5 5 0" AllowBlank="false" ReadOnly="True" />
                                                <ext:Button runat="server" Text="" Icon="BulletGet" ID="btnProvince_Staying" ToolTip="Click vào để chọn quận/huyện" Margins="0 20 0 0">
                                                    <DirectEvents>
                                                        <Click OnEvent="btnProvince_Staying_Click">
                                                            <EventMask ShowMask="true" Msg="Đang tải..." />
                                                        </Click>
                                                    </DirectEvents>
                                                </ext:Button>
                                                <ext:TextField ID="txtProvince_ID_Staying" runat="server" FieldLabel="Tôn giáo" AnchorHorizontal="100%" AllowBlank="false" Hidden="True" />
                                            </Items>
                                        </ext:FieldContainer>
                                        <ext:FieldContainer
                                            runat="server"
                                            AnchorHorizontal="100%"
                                            Layout="HBoxLayout">
                                            <Items>
                                                <ext:TextField ID="txtApplicants_Email" runat="server" FieldLabel="Email" Width="525" AllowBlank="false" />
                                            </Items>
                                        </ext:FieldContainer>
                                        <ext:FieldContainer
                                            runat="server"
                                            AnchorHorizontal="100%"
                                            Layout="HBoxLayout">
                                            <Items>
                                                <ext:TextField ID="txtApplicants_Phone" runat="server" FieldLabel="Điện thoại" AnchorHorizontal="100%" AllowBlank="false" MarginSpec="0 20 5 0" />
                                                <ext:TextField ID="txtApplicants_Mobie" runat="server" FieldLabel="Di động" AnchorHorizontal="100%" AllowBlank="false" />
                                            </Items>
                                        </ext:FieldContainer>
                                    </Items>
                                </ext:Panel>
                                <ext:Panel 
                                    ID="TabSkill"
                                    runat="server" 
                                    Title="Kinh nghiệm - trình độ học vấn" 
                                    Height="350"
                                    Layout="FormLayout"
                                    Border="False"
                                    BodyPadding="6">
                                    <Items>
                                        <ext:FieldContainer
                                            runat="server"
                                            AnchorHorizontal="100%"
                                            Layout="HBoxLayout">
                                            <Items>
                                                <ext:TextField ID="txtEducational_Level" runat="server" FieldLabel="Trình độ VH" LabelWidth="150" Width="308" AllowBlank="false" MarginSpec="0 5 5 0"  ReadOnly="True" />
                                                <ext:Button runat="server" Text="" Icon="BulletGet" ID="btntxtEducational_Level" ToolTip="Click vào để chọn dân tộc" Margins="0 20 0 0">
                                                    <DirectEvents>
                                                        <Click OnEvent="btnEducational_Click">
                                                            <EventMask ShowMask="true" Msg="Đang tải..." />
                                                        </Click>
                                                    </DirectEvents>
                                                </ext:Button>
                                                <ext:TextField ID="txtEducational_Level_ID" runat="server" FieldLabel="Trình độ VH" AnchorHorizontal="100%" AllowBlank="false" Hidden="True" />
                                                <ext:TextField ID="txtSector" runat="server" FieldLabel="Ngành học" Width="308" MarginSpec="0 5 5 0" AllowBlank="false" ReadOnly="True" />
                                                <ext:Button runat="server" Text="" Icon="BulletGet" ID="btnSector" ToolTip="Click vào để chọn tôn giáo" Margins="0 20 0 0">
                                                    <DirectEvents>
                                                        <Click OnEvent="btnSector_Click">
                                                            <EventMask ShowMask="true" Msg="Đang tải..." />
                                                        </Click>
                                                    </DirectEvents>
                                                </ext:Button>
                                                <ext:TextField ID="txtSector_ID" runat="server" FieldLabel="Ngành học" AnchorHorizontal="100%" AllowBlank="false" Hidden="True" />
                                            </Items>
                                        </ext:FieldContainer>
                                        <ext:TextField ID="txtApplicants_Language_Level" runat="server" FieldLabel="Ngoại ngữ" Width="690" LabelWidth="150" AllowBlank="false" MarginSpec="0 20 5 0"  />
                                        <ext:TextField ID="txtApplicants_Informatics" runat="server" FieldLabel="Tin học" Width="690" LabelWidth="150" AllowBlank="false" />
                                        <ext:NumberField ID="txtApplicants_YearsOfExperience" runat="server" FieldLabel="Số năm kinh nghiệm" LabelWidth="150" Width="336" AllowBlank="false" MarginSpec="0 20 5 0" />
                                        <ext:NumberField ID="txtApplicants_Wage_Current" runat="server" FieldLabel="Mức lương hiện tại" LabelWidth="150" Width="336" AllowBlank="false" MarginSpec="0 20 5 0" MinValue="0" />
                                        <ext:NumberField ID="txtApplicants_Wage_Order" runat="server" FieldLabel="Mức lương mong muốn" LabelWidth="150" Width="336" AllowBlank="false" MinValue="0" />
                                    </Items>
                                </ext:Panel>
                                <ext:Panel 
                                    ID="TabInfoOrder"
                                    runat="server" 
                                    Title="Thông tin khác" 
                                    Height="350"
                                    Border="False"
                                    BodyPadding="6">
                                    <Items>
                                        <ext:TextArea ID="txtApplicants_Skills" runat="server" FieldLabel="Kỹ năng" Width="690" Height="50" LabelWidth="150" AllowBlank="false" MarginSpec="0 20 5 0"  />
                                        <ext:TextArea ID="txtApplicants_Experience" runat="server" FieldLabel="Kinh nghiệm" Width="690" Height="50" LabelWidth="150" AllowBlank="false" MarginSpec="0 20 5 0"  />
                                        <ext:TextArea ID="txtApplicants_Objectives" runat="server" FieldLabel="Mục tiêu nghề nghiệp" Width="690" Height="50" LabelWidth="150" AllowBlank="false" MarginSpec="0 20 5 0"  />
                                        <ext:TextArea ID="txtApplicants_Introduce" runat="server" FieldLabel="Người giới thiệu" Width="690" Height="50" LabelWidth="150" AllowBlank="false" MarginSpec="0 20 5 0"  />
                                        <ext:TextArea ID="txtApplicants_Notes" runat="server" FieldLabel="Ghi chú" Width="690" Height="50" LabelWidth="150" MarginSpec="0 20 5 0"  />
                                    </Items>
                                </ext:Panel>
                            </Items>
                        </ext:TabPanel>
                    </Items>
                </ext:FormPanel>
            </Items>
        </ext:Window>
        <%--------------Ethnic-----------------%>
        <ext:Window ID="WindowApplicantsEthnic" runat="server"
            Title="Thông tin dân tộc"
            DefaultAnchor="100%"
            Width="829"
            Height="400"
            Hidden="true"
            AutoScroll="false"
            Maximizable="False"
            Minimizable="False"
            AutoDataBind="true"
            Region="Center"
            Resizable="False"
            Modal="true"
            Layout="Fit"
            HideMode="Offsets"
            Constrain="True">
            <Content>
                <ext:GridPanel
                    ID="grApplicantsEthnic"
                    Border="True"
                    runat="server"
                    AutoWidth="true"
                    AutoScroll="true"
                    Cls="gird"
                    EnableColumnMove="true">
                    <Store>
                        <%--------------StoreApplicantsEthnic-----------------%>
                        <ext:Store
                            ID="StoreApplicantsEthnic"
                            runat="server"
                            OnReadData="StoreApplicantsEthnic_RefreshData"
                            PageSize="14">
                            <Model>
                                <ext:Model runat="server" IDProperty="Ethnic_ID">
                                    <Fields>
                                        <ext:ModelField Name="Ethnic_Alias" Type="String" />
                                        <ext:ModelField Name="Ethnic_Name" Type="String" />
                                    </Fields>
                                </ext:Model>
                            </Model>
                        </ext:Store>
                    </Store>
                    <ColumnModel runat="server">
                        <Columns>
                             <ext:RowNumbererColumn runat="server" Width="30" Align="Center" />
                            <ext:Column runat="server" Text="Mã dân tộc" Width="100" DataIndex="Ethnic_Alias" Align="Center"></ext:Column>
                            <ext:Column runat="server" Text="Tên dân tộc" Width="150" DataIndex="Ethnic_Name" Flex="1"></ext:Column>
                        </Columns>
                    </ColumnModel>
                    <SelectionModel>
                        <ext:CellSelectionModel runat="server">
                            <DirectEvents>
                                <Select OnEvent="CellApplicantsEthnic_Click">
                                    <EventMask ShowMask="true" Msg="Đang tải..." />
                                </Select>
                            </DirectEvents>
                        </ext:CellSelectionModel>
                    </SelectionModel>
                    <DockedItems>
                        <ext:Toolbar runat="server" Dock="Bottom" AnchorHorizontal="100%">
                            <Items>
                                <ext:TriggerField ID="txtSearchApplicantsEthnic" runat="server" Width="200" EnableKeyEvents="true" MarginSpec="0 8 0 0">
                                    <Triggers>
                                        <ext:FieldTrigger Icon="Search" />
                                    </Triggers>
                                    <DirectEvents>
                                        <TriggerClick OnEvent="ApplicantsEthnic_Event"></TriggerClick>
                                        <KeyPress OnEvent="ApplicantsEthnic_Event"></KeyPress>
                                        <KeyUp OnEvent="ApplicantsEthnic_Event"></KeyUp>
                                    </DirectEvents>
                                </ext:TriggerField>
                                <ext:PagingToolbar runat="server" StoreID="StoreApplicantsEthnic" BeforePageText="Trang" AfterPageText="của {0}" LastText="Cuối" NextText="Kế tiếp" PrevText="Trở lại" FirstText="Đầu" RefreshText="Làm tươi" DisplayInfo="true" DisplayMsg="Trang {0} - {1} của {2}" />
                            </Items>
                        </ext:Toolbar>
                    </DockedItems>
                </ext:GridPanel>
            </Content>
        </ext:Window>
        <%--------------Sector-----------------%>
        <ext:Window ID="WindowSector" runat="server"
            Title="Thông tin ngành nghề"
            DefaultAnchor="100%"
            Width="829"
            Height="400"
            Hidden="true"
            AutoScroll="false"
            Maximizable="False"
            Minimizable="False"
            AutoDataBind="true"
            Region="Center"
            Resizable="False"
            Modal="true"
            Layout="Fit"
            HideMode="Offsets"
            Constrain="True">
            <Content>
                <ext:GridPanel
                    ID="grSector"
                    Border="True"
                    runat="server"
                    AutoWidth="true"
                    AutoScroll="true"
                    Cls="gird"
                    EnableColumnMove="true">
                    <Store>
                        <%--------------StoreApplicantsEthnic-----------------%>
                        <ext:Store
                            ID="StoreSector"
                            runat="server"
                            OnReadData="StoreApplicantsSector_RefreshData"
                            PageSize="14">
                            <Model>
                                <ext:Model runat="server" IDProperty="Sector_ID">
                                    <Fields>
                                        <ext:ModelField Name="Sector_Alias" Type="String" />
                                        <ext:ModelField Name="Sector_Name" Type="String" />
                                    </Fields>
                                </ext:Model>
                            </Model>
                        </ext:Store>
                    </Store>
                    <ColumnModel runat="server">
                        <Columns>
                             <ext:RowNumbererColumn runat="server" Width="30" Align="Center" />
                            <ext:Column runat="server" Text="Mã ngành nghề" Width="100" DataIndex="Sector_Alias" Align="Center"></ext:Column>
                            <ext:Column runat="server" Text="Tên ngành nghề" Width="150" DataIndex="Sector_Name" Flex="1"></ext:Column>
                        </Columns>
                    </ColumnModel>
                    <SelectionModel>
                        <ext:CellSelectionModel runat="server">
                            <DirectEvents>
                                <Select OnEvent="CellApplicantsSector_Click">
                                    <EventMask ShowMask="true" Msg="Đang tải..." />
                                </Select>
                            </DirectEvents>
                        </ext:CellSelectionModel>
                    </SelectionModel>
                    <DockedItems>
                        <ext:Toolbar runat="server" Dock="Bottom" AnchorHorizontal="100%">
                            <Items>
                                <ext:TriggerField ID="txtSearchSector" runat="server" Width="200" EnableKeyEvents="true" MarginSpec="0 8 0 0">
                                    <Triggers>
                                        <ext:FieldTrigger Icon="Search" />
                                    </Triggers>
                                    <DirectEvents>
                                        <TriggerClick OnEvent="ApplicantsSector_Event"></TriggerClick>
                                        <KeyPress OnEvent="ApplicantsSector_Event"></KeyPress>
                                        <KeyUp OnEvent="ApplicantsSector_Event"></KeyUp>
                                    </DirectEvents>
                                </ext:TriggerField>
                                <ext:PagingToolbar runat="server" StoreID="StoreSector" BeforePageText="Trang" AfterPageText="của {0}" LastText="Cuối" NextText="Kế tiếp" PrevText="Trở lại" FirstText="Đầu" RefreshText="Làm tươi" DisplayInfo="true" DisplayMsg="Trang {0} - {1} của {2}" />
                            </Items>
                        </ext:Toolbar>
                    </DockedItems>
                </ext:GridPanel>
            </Content>
        </ext:Window>
        <%--------------Educational-----------------%>
        <ext:Window ID="WindowEducational" runat="server"
            Title="Thông tin trình độ văn hoá"
            DefaultAnchor="100%"
            Width="829"
            Height="400"
            Hidden="true"
            AutoScroll="false"
            Maximizable="False"
            Minimizable="False"
            AutoDataBind="true"
            Region="Center"
            Resizable="False"
            Modal="true"
            Layout="Fit"
            HideMode="Offsets"
            Constrain="True">
            <Content>
                <ext:GridPanel
                    ID="grEducational"
                    Border="True"
                    runat="server"
                    AutoWidth="true"
                    AutoScroll="true"
                    Cls="gird"
                    EnableColumnMove="true">
                    <Store>
                        <%--------------StoreApplicantsEthnic-----------------%>
                        <ext:Store
                            ID="StoreEducational"
                            runat="server"
                            OnReadData="StoreApplicantsEducational_RefreshData"
                            PageSize="14">
                            <Model>
                                <ext:Model runat="server" IDProperty="Educational_Level_ID">
                                    <Fields>
                                        <ext:ModelField Name="Educational_Alias" Type="String" />
                                        <ext:ModelField Name="Educational_Name" Type="String" />
                                    </Fields>
                                </ext:Model>
                            </Model>
                        </ext:Store>
                    </Store>
                    <ColumnModel runat="server">
                        <Columns>
                             <ext:RowNumbererColumn runat="server" Width="30" Align="Center" />
                            <ext:Column runat="server" Text="Mã trình độ" Width="100" DataIndex="Educational_Alias" Align="Center"></ext:Column>
                            <ext:Column runat="server" Text="Tên trình độ" Width="150" DataIndex="Educational_Name" Flex="1"></ext:Column>
                        </Columns>
                    </ColumnModel>
                    <SelectionModel>
                        <ext:CellSelectionModel runat="server">
                            <DirectEvents>
                                <Select OnEvent="CellApplicantsEducational_Click">
                                    <EventMask ShowMask="true" Msg="Đang tải..." />
                                </Select>
                            </DirectEvents>
                        </ext:CellSelectionModel>
                    </SelectionModel>
                    <DockedItems>
                        <ext:Toolbar runat="server" Dock="Bottom" AnchorHorizontal="100%">
                            <Items>
                                <ext:TriggerField ID="txtSearchEducational" runat="server" Width="200" EnableKeyEvents="true" MarginSpec="0 8 0 0">
                                    <Triggers>
                                        <ext:FieldTrigger Icon="Search" />
                                    </Triggers>
                                    <DirectEvents>
                                        <TriggerClick OnEvent="ApplicantsEducational_Event"></TriggerClick>
                                        <KeyPress OnEvent="ApplicantsEducational_Event"></KeyPress>
                                        <KeyUp OnEvent="ApplicantsEducational_Event"></KeyUp>
                                    </DirectEvents>
                                </ext:TriggerField>
                                <ext:PagingToolbar runat="server" StoreID="StoreEducational" BeforePageText="Trang" AfterPageText="của {0}" LastText="Cuối" NextText="Kế tiếp" PrevText="Trở lại" FirstText="Đầu" RefreshText="Làm tươi" DisplayInfo="true" DisplayMsg="Trang {0} - {1} của {2}" />
                            </Items>
                        </ext:Toolbar>
                    </DockedItems>
                </ext:GridPanel>
            </Content>
        </ext:Window>
        <%--------------Religion-----------------%>
        <ext:Window ID="WindowReligion" runat="server"
            Title="Thông tin tôn giáo"
            DefaultAnchor="100%"
            Width="829"
            Height="400"
            Hidden="true"
            AutoScroll="false"
            Maximizable="False"
            Minimizable="False"
            AutoDataBind="true"
            Region="Center"
            Resizable="False"
            Modal="true"
            Layout="Fit"
            HideMode="Offsets"
            Constrain="True">
            <Content>
                <ext:GridPanel
                    ID="grReligion"
                    Border="True"
                    runat="server"
                    AutoWidth="true"
                    AutoScroll="true"
                    Cls="gird"
                    EnableColumnMove="true">
                    <Store>
                        <%--------------StoreApplicantsEthnic-----------------%>
                        <ext:Store
                            ID="StoreReligion"
                            runat="server"
                            OnReadData="StoreApplicantsReligion_RefreshData"
                            PageSize="14">
                            <Model>
                                <ext:Model runat="server" IDProperty="Religion_ID">
                                    <Fields>
                                        <ext:ModelField Name="Religion_Alias" Type="String" />
                                        <ext:ModelField Name="Religion_Name" Type="String" />
                                    </Fields>
                                </ext:Model>
                            </Model>
                        </ext:Store>
                    </Store>
                    <ColumnModel runat="server">
                        <Columns>
                             <ext:RowNumbererColumn runat="server" Width="30" Align="Center" />
                            <ext:Column runat="server" Text="Mã tôn giáo" Width="100" DataIndex="Religion_Alias" Align="Center"/>
                            <ext:Column runat="server" Text="Tên tôn giáo" Width="150" DataIndex="Religion_Name" Flex="1"/>
                        </Columns>
                    </ColumnModel>
                    <SelectionModel>
                        <ext:CellSelectionModel runat="server">
                            <DirectEvents>
                                <Select OnEvent="CellApplicantsReligion_Click">
                                    <EventMask ShowMask="true" Msg="Đang tải..." />
                                </Select>
                            </DirectEvents>
                        </ext:CellSelectionModel>
                    </SelectionModel>
                    <DockedItems>
                        <ext:Toolbar runat="server" Dock="Bottom" AnchorHorizontal="100%">
                            <Items>
                                <ext:TriggerField ID="txtSearchReligion" runat="server" Width="200" EnableKeyEvents="true" MarginSpec="0 8 0 0">
                                    <Triggers>
                                        <ext:FieldTrigger Icon="Search" />
                                    </Triggers>
                                    <DirectEvents>
                                        <TriggerClick OnEvent="ApplicantsReligion_Event"/>
                                        <KeyPress OnEvent="ApplicantsReligion_Event"/>
                                        <KeyUp OnEvent="ApplicantsReligion_Event"/>
                                    </DirectEvents>
                                </ext:TriggerField>
                                <ext:PagingToolbar runat="server" StoreID="StoreReligion" BeforePageText="Trang" AfterPageText="của {0}" LastText="Cuối" NextText="Kế tiếp" PrevText="Trở lại" FirstText="Đầu" RefreshText="Làm tươi" DisplayInfo="true" DisplayMsg="Trang {0} - {1} của {2}" />
                            </Items>
                        </ext:Toolbar>
                    </DockedItems>
                </ext:GridPanel>
            </Content>
        </ext:Window>
        <%--------------Districts-----------------%>
        <ext:Window ID="WindowApplicantsDistricts" runat="server"
            Title="Thông tin quận huyện"
            DefaultAnchor="100%"
            Width="829"
            Height="400"
            Hidden="true"
            AutoScroll="false"
            Maximizable="False"
            Minimizable="False"
            AutoDataBind="true"
            Region="Center"
            Resizable="False"
            Modal="true"
            Layout="Fit"
            HideMode="Offsets"
            Constrain="True">
            <Content>
                <ext:GridPanel
                    ID="grApplicantsDistricts"
                    Border="True"
                    runat="server"
                    AutoWidth="true"
                    AutoScroll="true"
                    Cls="gird"
                    EnableColumnMove="true">
                    <Store>
                        <%--------------StoreApplicantsDistricts-----------------%>
                        <ext:Store
                            ID="StoreApplicantsDistricts"
                            runat="server"
                            OnReadData="StoreApplicantsDistricts_RefreshData"
                            PageSize="13">
                            <Model>
                                <ext:Model runat="server" IDProperty="Districts_Id" GroupField="Province_Name">
                                    <Fields>
                                        <ext:ModelField Name="Districts_Alias" Type="String" />
                                        <ext:ModelField Name="Districts_Name" Type="String" />
                                        <ext:ModelField Name="Province_Name" Type="String" />
                                    </Fields>
                                </ext:Model>
                            </Model>
                        </ext:Store>
                    </Store>
                    <ColumnModel runat="server">
                        <Columns>
                            <ext:RowNumbererColumn runat="server" Width="30" Align="Center" />
                            <ext:Column runat="server" Text="Mã quận huyện" Width="100" DataIndex="Districts_Alias" Align="Center"></ext:Column>
                            <ext:Column runat="server" Text="Tên quận huyện" Width="150" DataIndex="Districts_Name"></ext:Column>
                            <ext:Column runat="server" Text="Tên tỉnh thành" Width="100" DataIndex="Province_Name" Flex="1"></ext:Column>
                        </Columns>
                    </ColumnModel>
                    <Features>
                    <ext:Grouping
                        runat="server" 
                        HideGroupedHeader="true"
                        GroupByText="Xem theo phân nhóm"
                        ShowGroupsText="Phân nhóm"
                        GroupHeaderTplString="{name} ({rows.length} danh mục con {[values.rows.length > 1 ? '' : '']})"
                        StartCollapsed="True" />
                    </Features>
                    <SelectionModel>
                        <ext:CellSelectionModel runat="server">
                            <DirectEvents>
                                <Select OnEvent="CellApplicantsDistricts_Click">
                                    <EventMask ShowMask="true" Msg="Đang tải..." />
                                </Select>
                            </DirectEvents>
                        </ext:CellSelectionModel>
                    </SelectionModel>
                    <DockedItems>
                        <ext:Toolbar runat="server" Dock="Top" AnchorHorizontal="100%">
                            <Items>
                                <ext:SelectBox
                                    ID="SelectBoxApplicantsNational"
                                    runat="server"
                                    Cls="x-select-box"
                                    DisplayField="National_Name"
                                    ValueField="National_Id"
                                    MarginSpec="0 8 0 0"
                                    EmptyText="Chọn quốc gia">
                                    <Store>
                                        <ext:Store ID="StoreApplicantsNational" runat="server">
                                            <Model>
                                                <ext:Model runat="server">
                                                    <Fields>
                                                        <ext:ModelField Name="National_Name" />
                                                        <ext:ModelField Name="National_Id" />
                                                    </Fields>
                                                </ext:Model>
                                            </Model>
                                        </ext:Store>
                                    </Store>
                                    <DirectEvents>
                                        <Select OnEvent="SelectBoxApplicantsNational_Change">
                                            <EventMask ShowMask="true" Msg="Đang tải..."></EventMask>
                                        </Select>
                                    </DirectEvents>
                                </ext:SelectBox>
                                <ext:SelectBox
                                    ID="SelectBoxApplicantsDomain"
                                    runat="server"
                                    Cls="x-select-box"
                                    DisplayField="Domain_Name"
                                    ValueField="Domain_Id"
                                    MarginSpec="0 8 0 0"
                                    EmptyText="Chọn vùng/miền">
                                    <Store>
                                        <ext:Store ID="StoreApplicantsDomain" runat="server">
                                            <Model>
                                                <ext:Model runat="server">
                                                    <Fields>
                                                        <ext:ModelField Name="Domain_Name" />
                                                        <ext:ModelField Name="Domain_Id" />
                                                    </Fields>
                                                </ext:Model>
                                            </Model>
                                        </ext:Store>
                                    </Store>
                                    <DirectEvents>
                                        <Select OnEvent="SelectBoxApplicantsDomain_Change">
                                            <EventMask ShowMask="true" Msg="Đang tải..."></EventMask>
                                        </Select>
                                    </DirectEvents>
                                </ext:SelectBox>
                                <ext:SelectBox
                                    ID="SelectBoxProvincesApplicants"
                                    runat="server"
                                    Cls="x-select-box"
                                    DisplayField="Province_Name"
                                    ValueField="Province_Id"
                                    MarginSpec="0 8 0 0"
                                    EmptyText="Chọn tỉnh/thành">
                                    <Store>
                                        <ext:Store ID="StoreProvincesApplicants" runat="server">
                                            <Model>
                                                <ext:Model runat="server">
                                                    <Fields>
                                                        <ext:ModelField Name="Province_Name" />
                                                        <ext:ModelField Name="Province_Id" />
                                                    </Fields>
                                                </ext:Model>
                                            </Model>
                                        </ext:Store>
                                    </Store>
                                    <DirectEvents>
                                        <Select OnEvent="SelectBoxProvincesApplicants_Change">
                                            <EventMask ShowMask="true" Msg="Đang tải..."></EventMask>
                                        </Select>
                                    </DirectEvents>
                                </ext:SelectBox>
                            </Items>
                        </ext:Toolbar>
                        <ext:Toolbar runat="server" Dock="Bottom" AnchorHorizontal="100%">
                            <Items>
                                <ext:TriggerField ID="txtSearchApplicantsDistricts" runat="server" Width="200" EnableKeyEvents="true" MarginSpec="0 8 0 0">
                                    <Triggers>
                                        <ext:FieldTrigger Icon="Search" />
                                    </Triggers>
                                    <DirectEvents>
                                        <TriggerClick OnEvent="ApplicantsDistricts_Event"></TriggerClick>
                                        <KeyPress OnEvent="ApplicantsDistricts_Event"></KeyPress>
                                        <KeyUp OnEvent="ApplicantsDistricts_Event"></KeyUp>
                                    </DirectEvents>
                                </ext:TriggerField>
                                <ext:PagingToolbar runat="server" StoreID="StoreApplicantsDistricts" BeforePageText="Trang" AfterPageText="của {0}" LastText="Cuối" NextText="Kế tiếp" PrevText="Trở lại" FirstText="Đầu" RefreshText="Làm tươi" DisplayInfo="true" DisplayMsg="Trang {0} - {1} của {2}" />
                            </Items>
                        </ext:Toolbar>
                    </DockedItems>
                </ext:GridPanel>
            </Content>
        </ext:Window>
    </Content>
</ext:Panel>